package com.zhanghp.demo02;

/**
 * @author zhanghp
 * @date 2022-08-26 17:01
 */
public class Edit{

    public EventManager eventManager;

    public Edit(PhoneType ... phoneTypes) {
        this.eventManager = new EventManager(phoneTypes);
    }

    public void applePhone(PhoneStatus status){
        eventManager.notifyListener(PhoneType.APPLE, status);
    }

    public void huaweiPhone(PhoneStatus status){
        eventManager.notifyListener(PhoneType.HUAWEI, status);
    }
}
